package com.atguigu.spring.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {

    @RequestMapping("/test/boom")
    public int boom() {
        return 10 / 0;
    }

    @RequestMapping("/test/null/pointer")
    public String nullPointer() {
        String info = null;
        return info.toUpperCase();
    }
}
